<?php
class UserMgr extends UserLib
{
	private $model = null;
	private $auth  = null;

	public function __construct()
	{
		$this->auth  = ClassLoader::getInstance()->uniqueInstance( Auth );
		$this->model = $this->auth->getModel();
	}

	public function createUser($username, $passwd, $group, $email)
	{
		$this->model->users()->createUser(
			$username, $passwd, $group, $email
		);
	}

	public static function getInstance()
	{
		if ( !self::$instance )
			self::$instance = new UserMgr();

		return( self::$instance );
	}
}
?>
